import request from "@/router/axios";

export function saveFactor(params) {
  return request({
    url: "/api/blade-measure/measure/gaugefactor/save",
    method: "post",
    data: {
      ...params
    }
  });
}

export function getFactorList(current, size, params) {
  return request({
    url: "/api/blade-measure/measure/gaugefactor/list",
    method: "get",
    params: {
      current,
      size,
      ...params
    }
  });
}

export const updateFactor = params => {
  return request({
    url: "/api/blade-measure/measure/gaugefactor/update",
    method: "post",
    data: {
      ...params
    }
  });
};

export const deleteFactor = params => {
  return request({
    url: "/api/blade-measure/measure/gaugefactor/remove",
    method: "post",
    params: {
      ...params
    }
  });
};
